#include<iostream>
using namespace std;

//https://www.nowcoder.com/practice/762836f4d43d43ca9deb273b3de8e1f4?tpId=13&tqId=11198&ru=/exam/oj

class Solution
{
public:
    bool hash[14] = { 0 };

    bool IsContinuous(vector<int>& numbers)
    {
        int maxval = 0, minval = 14;
        for (auto x : numbers)
        {
            if (x)
            {
                if (hash[x]) return false;
                hash[x] = true;
                maxval = max(maxval, x);
                minval = min(minval, x);
            }
        }
        return maxval - minval <= 4;

    }
};

int main()
{
    
    return 0;
}